Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
문제출처 문제번호: 문제이름
🚩 설계
그냥 생각나는 게 dfs로 완탐 돌리는 거 밖에 없어서 일단 짜고 봤다.
그리고 0이 가로, 1이 세로, 2가 대각선으로 치고,
이동 후의 모든 경우의 수에 대해 파이프에서 가장 우측 하단 칸의 delta값을 배열로 뒀음.
✅ 후기
역시나 중복되는 게 많아서 dp로 뭔가 될 거 같더니 남의 코드 보니까 dp로 풀었음. 시간은 반토막